//
//  AnswerInputView.h
//  DoingPaper_LS
//
//  Created by zhuxuhong on 2016/11/5.
//  Copyright © 2016年 zhuxuhong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, AnswerInputType){
    InputText, // 输入文本
    FreeDraw, // 手绘
    TakePhoto, // 照片
};

@class AnswerInputView;

@protocol AnswerInputViewDelegate <NSObject>

-(void)answerInputViewDidEndInputWithReturnKeyClick;

-(void)answerInputView: (AnswerInputView*)inputView
          sectionIndex: (NSInteger)section
didEndInputWithInputText: (NSString*)text;

-(void)answerInputView: (AnswerInputView*)inputView
          sectionIndex: (NSInteger)section
didEndInputWithInputImage: (UIImage*)image;

@end

@interface AnswerInputView : UIView

-(instancetype)initWithFrame:(CGRect)frame
                sectionIndex: (NSInteger)index;

@property(nonatomic,weak)id<AnswerInputViewDelegate> delegate;

@end
